package com.ruoyi.union.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动报名对象 sys_activity_registration
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_activity_registration")
public class SysActivityRegistration extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 报名主键id */
    @TableId(value = "registration_id", type = IdType.AUTO)
    private Long registrationId;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 报名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registrationTime;

    /** 报名状态（0待确认 1已确认） */
    @Excel(name = "报名状态", readConverterExp = "0=待确认,1=已确认")
    private String registrationStatus;

    public void setRegistrationId(Long registrationId) 
    {
        this.registrationId = registrationId;
    }

    public Long getRegistrationId() 
    {
        return registrationId;
    }

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }

    public void setRegistrationTime(Date registrationTime) 
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() 
    {
        return registrationTime;
    }

    public void setRegistrationStatus(String registrationStatus) 
    {
        this.registrationStatus = registrationStatus;
    }

    public String getRegistrationStatus() 
    {
        return registrationStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("registrationId", getRegistrationId())
            .append("activityId", getActivityId())
            .append("memberId", getMemberId())
            .append("registrationTime", getRegistrationTime())
            .append("registrationStatus", getRegistrationStatus())
            .toString();
    }
}

